import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);

const state = {
    show:  123
}

const getters = {                     //    this.$store.getters.isShow
    isShow (state) {
        return state.show
    },
}

const mutations = {
    show1(state) {                   //     this.$store.commit('show1')
        return state.show ++             
    },
};



const store = new Vuex.Store({
    state,
    getters,
    mutations
});
 
export default store;